#include <iostream>
#include <unordered_map>
#include <string>
using namespace std;

int main() {
    string stra;
    string strb;
    while (cin >> stra >> strb)
    {
        unordered_map<char, int>  mapa;
        for (const auto& ch : stra)
            mapa[ch]++;
        unordered_map<char, int> mapb;
        for (const auto& ch : strb)
            mapb[ch]++;
        bool flag = true;
        for (const auto& B : mapb)
        {
            if (mapa[B.first] < B.second)
            {
                flag = false;
                break;
            }
        }
        if (flag)
            cout << "Yes" << endl;
        else
            cout << "No" << endl;
    }
    return 0;
}